package com.guet.niit.Admin.controller;

import com.guet.niit.Admin.service.ChargingPileService;

import java.util.Scanner;

//充电桩管理
public class ChargingPileController {
    public static void charging_pileMenu(){
        System.out.println("----------------");
        System.out.println("---1.充电桩添加---");
        System.out.println("---2.充电桩删除---");
        System.out.println("---3.充电桩更改---");
        System.out.println("---4.充电桩查询---");
        System.out.println("----------------");
        Scanner scanner = new Scanner(System.in);
        int option = scanner.nextInt();
        switch (option){
            case 1:
                ChargingPileService chargingPileService = new ChargingPileService();
                chargingPileService.chargingPileAdd();
                break;
            case 2:
                ChargingPileService chargingPileService1 = new ChargingPileService();
                chargingPileService1.chargingPileDelete();
                break;
            case 3:
                ChargingPileService chargingPileService2 = new ChargingPileService();
                chargingPileService2.chargingPileModify();
                break;
            case 4:
                ChargingPileService chargingPileService3 = new ChargingPileService();
                chargingPileService3.chargingPileInquire();
                break;


        }
    }

}
